#ifndef __TCP_SERVER_H__
#define __TCP_SERVER_H__
#include<string>
#include"IpAddressPort.h"


class IpAddressPort;
class Msg;

class TcpServer
{
private:
    int m_mlfd;
public:
    TcpServer(const IpAddressPort& ipAddressAndPort);
    ~TcpServer();
    int Accept();
    int SendMsg(int sfd,const std::string&msfd);
    Msg RecvMsg(int cfd);
    int GetSfd()const;
};


#endif